<?php

namespace Es\Struct;


class DocumentStruct
{
    public  $index;
    public  $type;
    public  $id;
    public  $body;
    public function __construct(
        string $index, 
        array $body = [],
        string $id = '',  
        string $type = '_doc'
    )
    {
        $this->index   = $index;
        $this->type    = $type;
        $this->id      = $id;
        $this->body    = $body;
    }
}